home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / tcengine.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-07-15  |  2.5 KB  |  91 lines

  1. //******************************************************************'
  2. //*                                                                *'
  3. //*                      TurboCAD for Windows                      *'
  4. //*                   Copyright (c) 1993 - 2004                    *'
  5. //*             International Microcomputer Software, Inc.         *'
  6. //*                            (IMSI)                              *'
  7. //*                      All rights reserved.                      *'
  8. //*                                                                *'
  9. //******************************************************************'
  10. #pragma once
  11.  
  12. using namespace System;
  13. using namespace System::ComponentModel;
  14. using namespace System::Collections;
  15. using namespace System::Diagnostics;
  16. using namespace Interop::IMSIGX ;
  17.  
  18. namespace TcGeometryVC_Net
  19. {
  20.     /// <summary> 
  21.     /// Summary for TcEngine
  22.     /// </summary>
  23.     __gc public class TcEngine :  public System::ComponentModel::Component
  24.     {
  25.     public:
  26.         TcEngine(void)
  27.             : m_gxApp (NULL)
  28.             , m_gxView(NULL)
  29.             ,m_gxDrawing(NULL)
  30.         {
  31.             InitializeComponent();
  32.         }
  33.         TcEngine(System::ComponentModel::IContainer *container) : components(0)
  34.         {
  35.             /// <summary>
  36.             /// Required for Windows.Forms Class Composition Designer support
  37.             /// </summary>
  38.  
  39.             container->Add(this);
  40.             InitializeComponent();
  41.         }
  42.         
  43.     protected: 
  44.         void Dispose(Boolean disposing)
  45.         {
  46.             if (disposing && components)
  47.             {
  48.                 components->Dispose();
  49.             }
  50.             __super::Dispose(disposing);
  51.         }
  52.                 
  53.     private:
  54.         /// <summary>
  55.         /// Required designer variable.
  56.         /// </summary>
  57.         System::ComponentModel::Container *components;
  58.         
  59.         /// <summary>
  60.         /// Required method for Designer support - do not modify
  61.         /// the contents of this method with the code editor.
  62.         /// </summary>        
  63.         void InitializeComponent(void)
  64.         {
  65.             components = new System::ComponentModel::Container();
  66.         }
  67.     public:
  68.         
  69.         IApplication* m_gxApp;
  70.         IDrawing* m_gxDrawing;
  71.         View* m_gxView;
  72.  
  73.         // creates IMSIGX.XApplication 
  74.         void CreategxApp(void);
  75. //        {
  76. //        }
  77.  
  78.         void CreategxDrawing(void);
  79. //        {
  80. //        }
  81.  
  82.         void CreategxView(int  hWnd);
  83. //        {
  84. //        }
  85.         void Zoom(double dZoomFactor);
  86.         IGraphic* SelectGraphic(double xScreen, double yScreen);
  87.         IGraphic* AddCircleCenterAndPoint(double x1Screen, double y1Screen, double x2Screen, double y2Screen);
  88.         IGraphic* AddLineSingle(double x1Screen, double y1Screen, double x2Screen, double y2Screen)
  89. ;
  90.     };
  91. }